<script src="scripts/gdiff.js"></script>
<script id="source">
    $(document).ready(function() {
        $(function() {
 	    <?php $iteration=0 ?>
 	    <?php foreach ($data as $os) { ?>
                        try {
                                        var pointer = <?php echo $iteration ?>;
                                        var added = [];
                                        var mod = [];

                                                                                        } catch (e) {
                                                                                            console.error(e);
                                                                                        }
                                                                                                <?php $iteration++ ?>
												<?php } ?>
                                                                                                });
                                                                                            });
</script>